dct = {"name":"张三","pwd":"123456","gender":"男","tel":"110"}
print(dct)

# 像这样去遍历只有键没有值.
for i in dct:
    print(i)
    
for i in dct:
    print(i,dct[i])
    
# 一次性获取键值对
print(dct.items())

for element in dct.items():
    print(element)

for index,element in enumerate(dct.items()):
    print(index,element)